package com.yonyou.pmclouds.messagenotice.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@Table(name = "pm_message_notice")
public class MessageNoticeVO extends SuperVO{

    private static final long serialVersionUID = -3000708971484432501L;

    @Id
    private String pkMessageNotice;

    @NotNull
    private String pkTenant;

    // 关联类型
    @NotNull
    private String relateType;

    // 关联业务主键
    private String relateKey;

    // 消息标题
    private String messageTitle;

    // 消息内容
    private String messageContent;

    // 消息接受人
    private String messageReceiver;

    // 图标
    private String messageIcon;

    // 是否已读
    private int isRead;

    private String creator;

    private Date creationtime;

    private String modifier;

    private Date modifytime;

    @Transient
    private String creatorName;

}
